import request from '@/utils/request'

// 查询渠道商数据列表
export function listChannelMerchants(query) {
  return request({
    url: '/channelMerchants/channelMerchants/list',
    method: 'get',
    params: query
  })
}

// 查询渠道商数据详细
export function getChannelMerchants(id) {
  return request({
    url: '/channelMerchants/channelMerchants/' + id,
    method: 'get'
  })
}

// 新增渠道商数据
export function addChannelMerchants(data) {
  return request({
    url: '/channelMerchants/channelMerchants',
    method: 'post',
    data: data
  })
}

// 修改渠道商数据
export function updateChannelMerchants(data) {
  return request({
    url: '/channelMerchants/channelMerchants',
    method: 'put',
    data: data
  })
}

// 删除渠道商数据
export function delChannelMerchants(id) {
  return request({
    url: '/channelMerchants/channelMerchants/' + id,
    method: 'delete'
  })
}
